mwan3: handle missing interface gracefully
authorEtienne Champetier <[email protected]>
Sun, 3 Aug 2025 01:50:07 +0000 (21:50 -0400)
committerEtienne Champetier <[email protected]>
Sun, 3 Aug 2025 18:24:52 +0000 (14:24 -0400)
commit8ae00f92b3e5b5f9270f071f25687bedea18cfaa
tree8b092a587312dcfc57cd5bdcdeafa32aeb77f648
parentcf6ef1ac5a706101739577a63fea07f9cea33072
mwan3: handle missing interface gracefully

`ubus.call(sprintf('network.interface.%s', ifname), 'status', {})`
returns null if the interface `ifname` doesn't exists (yet).

For pppoe interfaces using `option ipv6 auto`, a virtual interface suffixed `_6`
is automatically created once the connection is established,
but until then it doesn't exists.

Fixes: 6423781254b9f3e52c6102fb2cbcd9f99f2445a3 ("mwan3: reimplement rpcd plugin using ucode")
Signed-off-by: Etienne Champetier <[email protected]>
net/mwan3/Makefile
net/mwan3/files/usr/share/rpcd/ucode/mwan3